//Dev Console
var exit = false;
var text = "";
function openConsole()
{
	
	RenderMap();
	var map_image = GrabImage(0,0, GetScreenWidth(), GetScreenHeight()); // Get Image
	FlipScreen();
	map_image.blit(0,0);
	Rectangle(0, 0, GetScreenWidth(), 100, CreateColor(0,0,0, 200));
	
	FlipScreen();
	while(!exit)
	{
		break;
		while(AreKeysLeft())
	  {

			switch(GetKey()) 
			{
					case KEY_SHIFT:
						Log.write("shift");
						exit = true;
					break;
					default:
						text += GetKeyString(GetKey(), true);
						Log.write("Time: "+GetTime());
						map_image.blit(0,0);
						Rectangle(16, 16, GetScreenWidth(), 100, CreateColor(0,0,0, 200));
						f.drawTextBox(0, 0, GetScreenWidth() - 32, 102, 2, text);
						FlipScreen();
					break;
					}
    }
}
exit = false;
}